﻿/*
 ***********************************
 时间：2017.7.25
 代码：WangSir
 脚本作用：如何调用委托
 ************************************
 */
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary> </summary>
public class HowToUseDelegation : MonoBehaviour
{
    UseDelegation useDelegation;

    private void Start()
    {
        useDelegation = GetComponent<UseDelegation>();
        useDelegation.DelegationEvent += UseDelegation_DelegationEvent;
    }

    private void UseDelegation_DelegationEvent()
    {
        print("执行");
    }
}
